
/**
* AJAX 载入用户相册列表页面
*
* @return 	void
*/
function loadThumbs(get_url) {
	if(!get_url) {
		get_url = $("#photo-thumbs").attr("src");
	}
	loadListThumbs(get_url);
}

/**
 * AJAX 响应分页链接请求
 *
 * @return void
 */
function bindPagesThumbs() {
	$(".pages-link").click(function(){
		loadListThumbs($(this).attr('href'));
		return false;
	});

	$(".pages-list").removeAttr("onchange");
	$(".pages-list").change(function(){
		loadListThumbs($(this).val());
		return false;
	});
}

/**
 * 载入图片列表
 *
 * @param string load_url 载入地址
 * @return void
 */
function loadListThumbs(load_url) {
	addMmLightBoxMsg('Wait a moment please, loading data ...', 0, 0, 1);
	$.get(load_url, function(dt){
		$('#photo-thumbs').height('auto').html(dt);
		reactHeight();
		removeMmLightBoxMsg();
		bindPagesThumbs();
	});
}
